f = open('file1.txt', 'w+')
s = input('请输入一行字符串')
f.write(s.lower())